package com.h3c.ptability.entity;

import java.util.Date;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtAllWorker
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_all_worker 实体
 * Version: 1.0
 */
@ApiModel(value="PtAllWorker对象", description="")
@Table(name = "pt_all_worker")
@Data
public class PtAllWorker {

    @TableId
    @Column(name = "worker_id")
    private String workerId;

    @ApiModelProperty(value = "域账号")
    @Column(name = "domain_account")
    private String domainAccount;

    @Column(name = "worker_name")
    private String workerName;

    @ApiModelProperty(value = "拼音姓名")
    @Column(name = "display_name")
    private String displayName;

    @Column(name = "dept1id")
    private Integer dept1id;

    @Column(name = "dept2id")
    private Integer dept2id;

    @Column(name = "dept3id")
    private Integer dept3id;

    @Column(name = "dept4id")
    private Integer dept4id;

    @Column(name = "direct_dept_id")
    private Integer directDeptId;

    @Column(name = "post_type")
    private String postType;

    @Column(name = "post_level")
    private String postLevel;

    @Column(name = "post_type_level")
    private String postTypeLevel;

    @Column(name = "job_type")
    private String jobType;

    @Column(name = "job_level")
    private String jobLevel;

    @Column(name = "job_level_name")
    private String jobLevelName;

    @Column(name = "job_type_level")
    private String jobTypeLevel;

    @Column(name = "sync_time")
    private Date syncTime;

    @Column(name = "email")
    private String email;

    @Column(name = "phone_no")
    private String phoneNo;

    @ApiModelProperty(value = "干部层级")
    @Column(name = "leader_level")
    private String leaderLevel;

    @ApiModelProperty(value = "入职日期")
    @Column(name = "join_date")
    private Date joinDate;

    @ApiModelProperty(value = "年龄")
    @Column(name = "age")
    private Integer age;

    @Column(name = "lock_flag")
    private String lockFlag;

    @ApiModelProperty(value = "模拟账号的登录人域账号")
    @Column(name = "lock_account")
    private String lockAccount;

    @ApiModelProperty(value = "员工状态：1 在职；2 离职")
    @Column(name = "worker_status")
    private Integer workerStatus;

    @ApiModelProperty(value = "员工类型：1 正式员工；2 合作员工")
    @Column(name = "worker_type")
    private Integer workerType;

    @TableField(exist = false)
    private String directDeptName;

}
